// 城市编码
// import request from '@/utils/request'
import axios from 'axios'
import {
    GAO_DE_KEY
} from '@/utils/utils.ts'
export function getCityCode(params) {
    return axios.get(
        'https://restapi.amap.com/v3/geocode/geo', {
            params: {
                key: GAO_DE_KEY
            }
        }
    )
}
//经纬度
export function getJW() {
    return axios.get(
        'https://restapi.amap.com/v3/ip', {
            params: {
                key: GAO_DE_KEY
            }
        }
    )
}

//获取天气
export function getWeather(city) {
    return axios.get(
        'https://restapi.amap.com/v3/weather/weatherInfo?parameters', {
            params: {
                key: GAO_DE_KEY,
                city
            }
        }
    )
}